package com.zlx.store.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (CouponTab)实体类
 *
 * @author makejava
 * @since 2023-07-28 17:50:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("coupon_tab")
public class Coupon  {

     /**
     * 优惠券id
     */
     @TableId(value = "coupon_id",type = IdType.AUTO)
    private Long couponId;



    /**
     * 优惠券名称
     */
    @TableField("coupon_name")
    private String couponName;



    /**
     * 优惠券库存
     */
    @TableField("coupon_stock")
    private Integer couponStock;



    /**
     * 优惠券种类id.1,折扣券.2,满减券.3.新人专享券
     */
    @TableField("coupon_category")
    private Integer couponCategory;



    /**
     * 如果有折扣,优惠券折扣
     */
    @TableField("coupon_discount")
    private Double couponDiscount;



    /**
     * 如果有满减,满减需要达到的金额
     */
    @TableField("coupon_target_money")
    private Double couponTargetMoney;



    /**
     * 如果有满减,优惠的价格
     */
    @TableField("coupon_reduction_money")
    private Double couponReductionMoney;



    /**
     * 优惠券的开始时间
     */
    @TableField("coupon_start_time")
    private Date couponStartTime;



    /**
     * 优惠券的截止时间
     */
    @TableField("coupon_end_time")
    private Date couponEndTime;



    /**
     * 优惠券的创建时间
     */
    @TableField("coupon_create_time")
    private Date couponCreateTime;



    /**
     * 优惠券的创建人
     */
    @TableField("coupon_create_by")
    private Long couponCreateBy;
}

